package com.sc.service.article;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sc.dal.mapper.article.ArticleMapper;
import com.sc.dal.model.ParamMap;
import com.sc.dal.model.article.Article;
import com.sc.dal.model.order.Orders;
import com.sc.service.BaseServiceImpl;
@Service
public class ArticleService extends BaseServiceImpl<Article>{
	@Autowired
	private ArticleMapper articleMapper;
	public void insert(Article article){
		articleMapper.insert(article);
	}
	public List<Article> selectList(ParamMap paramMap) {
		// TODO Auto-generated method stub
		return articleMapper.selectList(paramMap);
	} 
	public Article selectByPrimaryKey(Integer id){
		return articleMapper.selectByPrimaryKey(id);
	}
	public void updateByPrimaryKeyWithBLOBs(Article article){
		articleMapper.updateByPrimaryKeyWithBLOBs(article);
	}
	public void updateByPrimaryKeySelective(Article article) {
		// TODO Auto-generated method stub
		articleMapper.updateByPrimaryKeySelective(article);
	}
	public void selectByaType(Integer page, Integer pageSize, String atype) {
		// TODO Auto-generated method stub
	}
	 public List<Article>  selectByParam(Article article){
		 return articleMapper.selectByParam(article);
	 }
}
